﻿<UserControl x:Class="My.CodePlex.TFSExplorer.Controls.ChangeSetDetailsControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="70" />
            <RowDefinition Height="Auto" />
            <RowDefinition />
        </Grid.RowDefinitions>
        
        <StackPanel Orientation="Horizontal">
            <Grid Name="MetaData">
                <Grid.RowDefinitions>
                    <RowDefinition />
                    <RowDefinition />
                    <RowDefinition />
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto" />
                    <ColumnDefinition Width="Auto" />
                </Grid.ColumnDefinitions>

                <Label Content="Changeset #:" />
                <Label Grid.Column="1" Content="{Binding ChangeSet}" />
                
                <Label Grid.Row="1" Content="By User:" />
                <Label Grid.Row="1" Grid.Column="1" Content="{Binding ByUser}" />

                <Label Grid.Row="2" Content="Created On:" />
                <Label Grid.Row="2" Grid.Column="1" Content="{Binding CreatedOn}" />
            </Grid>
            
            <TextBox Grid.Column="3" Grid.RowSpan="3" Margin="10,0" Text="{Binding Comment}" VerticalScrollBarVisibility="Visible" TextWrapping="Wrap" />
        </StackPanel>
        
        <GridSplitter Grid.Row="1" HorizontalAlignment="Stretch" Width="Auto" Height="3" />
        <ListView Name="ChangeSetDetailsView" Grid.Row="2">
            <ListView.View>
                <GridView>
                    <GridViewColumn Width="Auto" Header="File name" DisplayMemberBinding="{Binding Name}" />
                    <GridViewColumn Width="Auto" Header="Change type" DisplayMemberBinding="{Binding Change}"  />
                    <GridViewColumn Width="Auto" Header="Folder" DisplayMemberBinding="{Binding Folder}"  />
                </GridView>
            </ListView.View>
        </ListView>
    </Grid>
</UserControl>
